export default {
  filtersListData: [
    {
      label: '消息标题：',
      inputType: 'input',
      prop: 'msgTitle',
      clearable: true
    },
    {
      label: '消息类型：',
      inputType: 'select',
      prop: 'msgType',
      clearable: true,
      options: [
        { value: 0, label: '指定用户' },
        { value: 1, label: '系统消息' }
      ]
    },
    {
      inputType: 'datePicker',
      label: '发送日期：',
      type: 'daterange',
      prop: 'time',
      startPlaceholder: '开始日期',
      endPlaceholder: '结束日期',
      format: 'YYYY-MM-DD'
    }
  ],
  btnPropsData: {
    list: [
      {
        hidden: false,
        label: '查询',
        type: 'primary',
        emit: 'query',
        style: {
          backgroundColor: '#298DB8'
        }
      },
      {
        hidden: false,
        label: '重置',
        type: 'primary',
        emit: 'reset',
        style: {
          backgroundColor: '#D5E0E5',
          border: '1px solid #D9D9D9',
          color: 'black'
        }
      }
    ]
  },
  //表格头部
  tableHeaderData: [
    {
      label: '消息标题',
      prop: 'msgTitle',
      width: '200'
    },
    {
      label: '消息内容',
      prop: 'msgContent',
      width: ''
    },
    {
      label: '阅读情况',
      prop: '',
      width: '200',
      methods: 'seeDetails',
      render: () => {
        return `<span style="padding:3px;background: #F7F9F9;border: 1px solid #75DCBF ;border-radius: 2px;color:#41A287">查看</span>`
      }
    },
    {
      label: '发送时间',
      prop: 'sendTime',
      width: '200'
    }
  ],
  // 表格操作按钮
  tableOptionsData: {
    label: '操作',
    width: '300',
    fixed: 'right',
    children: [
      {
        hidden: false,
        label: '查看',
        methods: 'detail',
        props: {
          type: 'text'
        },
        style: {
          marginRight: '5px',
          padding: '3px',
          borderRadius: ' 2px',
          color: '#41A287'
        }
      },
      {
        hidden: false,
        label: '附件',
        methods: 'more',
        props: {
          type: 'text'
        }
      },
      {
        hidden: false,
        label: '删除',
        methods: 'delete',
        props: {
          type: 'text'
        }
      }
    ]
  },
  //   查询数据
  paramsData: {
    msgTitle: '',
    msgType: '',
    sendTimeStart: '',
    sendTimeEnd: ''
  },
  //   分页
  pageInfo: {
    pageIndex: 1,
    totalCount: 4,
    pageSize: 10
  },
  rules: {
    msgTitle: [{ required: true, message: '请输入消息标题', trigger: 'blur' }],
    msgContent: [{ required: true, message: '请输入消息内容', trigger: 'blur' }],
    receiveUserIds: [
      {
        required: true,
        message: '请选择责任部门/责任人',
        trigger: 'change'
      }
    ]
  }
}
